package com.sc.service.member;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sc.dal.mapper.member.MemberGradeMapper;
import com.sc.dal.model.ParamMap;
import com.sc.dal.model.member.Member;
import com.sc.dal.model.member.MemberGrade;
@Service
public class MemberGradeService {
	@Autowired
	private MemberGradeMapper memberGradeMapper;
	/**
	 * 获取所有的会员等级
	 * <h2>方法注释说明</h2> 
	 * 
	 * @return
	 * @return List<MemberGrade> 
	 * @throws
	 */
	public List<MemberGrade> selectList(){
		return memberGradeMapper.selectList();
	}
	/**
	 * 获取分页的会员等级信息
	 * <h2>方法注释说明</h2> 
	 * 
	 * @param paramMap
	 * @return
	 * @return List<MemberGrade> 
	 * @throws
	 */
	public List<MemberGrade> selectListByPage(ParamMap paramMap) {
		// TODO Auto-generated method stub
		return memberGradeMapper.selectListByPage(paramMap);
	}
	/**
	 * 根据id获取会员等级信息
	 * <h2>方法注释说明</h2> 
	 * 
	 * @param idInt
	 * @return
	 * @return MemberGrade 
	 * @throws
	 */
	public MemberGrade selectByPrimaryKey(Integer idInt) {
		// TODO Auto-generated method stub
		return memberGradeMapper.selectByPrimaryKey(idInt);
	}
	/**
	 * 根据等级获取等级信息
	 * <h2>方法注释说明</h2> 
	 * 
	 * @param memberGrade
	 * @return
	 * @return MemberGrade 
	 * @throws
	 */
	public MemberGrade selectByGrade(MemberGrade memberGrade) {
		// TODO Auto-generated method stub
		return memberGradeMapper.selectByGrade(memberGrade);
	}
	/**
	 * 添加会员信息
	 * <h2>方法注释说明</h2> 
	 * 
	 * @param memberGrade
	 * @return void 
	 * @throws
	 */
	public void insertSelective(MemberGrade memberGrade) {
		// TODO Auto-generated method stub
		memberGradeMapper.insertSelective(memberGrade);
	}
	/**
	 * 根据等级id修改等级信息
	 * <h2>方法注释说明</h2> 
	 * 
	 * @param memberGrade
	 * @return void 
	 * @throws
	 */
	public void updateByPrimaryKeySelective(MemberGrade memberGrade) {
		// TODO Auto-generated method stub
		memberGradeMapper.updateByPrimaryKeySelective(memberGrade);
	}
}
